package book;

public class StringTest {

	public static void main(String[] args) {
		
		String a = "a";
		String b = "ab".substring(0, 1);
		System.out.println(a == b);
		System.out.println(a.equals(b));
	}
}
